package com.elitel.frame.main.entity.state;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class TimePushActivemq {
	private Integer pushSwitch = 0; //消息队列推送开关 0 为开 1为关

	@Value("${elitel.foundation.config.monitorMinServerExecuteTime:100l}")
	private long timeInterval; //性能监控毫秒值

	public Integer getPushSwitch() {
		return pushSwitch;
	}

	public void setPushSwitch(Integer pushSwitch) {
		this.pushSwitch = pushSwitch;
	}

	public long getTimeInterval() {
		return timeInterval;
	}

	public void setTimeInterval(long timeInterval) {
		this.timeInterval = timeInterval;
	}

	public boolean isOpenPushSwitch(){
		return getPushSwitch() == 0;
	}

	
}
